// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-breadcrumb__item {
  &:first-child {

    .el-breadcrumb__inner,
    .el-breadcrumb__inner a {
      font-weight: 600 !important;
    }
  }
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}


// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  border-radius: 8px;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

//button
.el-dropdown {

  .el-button--small,
  .el-button--small.is-round {
    min-width: initial;
    padding: 8px 16px;
  }

  .el-button-group .el-button--primary:last-child {
    padding: 8px 5px;
  }
}

.el-button--small,
.el-button--small.is-round {
  min-width: 120px;
}

.but32 {
  padding: 7px 16px;
}

//主色按钮，移上去的颜色
.el-button--primary:focus,
.el-button--primary:hover {
  background: #5270F2;
  border-color: #5270F2;
  color: #FFF;
}

//主色按钮 按下的颜色
.el-button--primary.is-active,
.el-button--primary:active {
  background: #3759EB;
  border-color: #3759EB;
  color: #FFF;
}

.el-button--primary {
  color: #FFF;
  background-color: #3F61F1;
  border-color: #3F61F1;

}

//默认按钮，移上去的颜色
.el-button--default:focus,
.el-button--default:hover {
  background: #fff;
  border-color: #3F61F1;
  color: #3F61F1;
}

//默认按钮 按下的颜色
.el-button--default.is-active,
.el-button--default:active {
  background: #F3F6FF;
  border-color: #3F61F1;
  color: #3F61F1;
}

.el-button--default {
  border-color: #DCDFE6;

}

.el-button.is-disabled {
  background: #ddd;
  border-color: #ddd;
  color: #fff;

  &:hover {
    background: #ddd;
    border-color: #ddd;
    color: #fff;
  }
}

//table
.el-table__body-wrapper {
  z-index: 2
}

// 解决固定列的时候，滚动条被遮挡无法拖动
.el-table__fixed-right {
  box-shadow: none;

  &::after {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    content: '';
    width: 5px;
    z-index: 8;
    box-shadow: inset -1px 0px 3px rgba(0, 0, 0, .12);
  }
}

.el-table__fixed {
  box-shadow: none;
  &::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    content: '';
    z-index: 8;
    border-right: 1px #eee solid;
  }
}

// 解决固定列的时候，滚动条被遮挡无法拖动************end
.el-table__body tr.current-row>td {
  background: #3f61f110;
}

.el-table__fixed-footer-wrapper tbody td.el-table__cell {
  border-bottom: none;
  border-top: none;
}

.el-table--border,
.el-table--group {
  border: 1px solid #EBEEF5;
  border-radius: 5px 5px;
  -webkit-border-radius: 5px 5px;
  -moz-border-radius: 5px 5px;
  -ms-border-radius: 5px 5px;
  -o-border-radius: 5px 5px;
}

.el-table--border::after,
.el-table--group::after,
.el-table::before {
  content: '';
  position: absolute;
  background-color: #ffffff;
  z-index: 1;
}

.el-table__header tr {
  th {
    background-color: #f8f9fb !important;
  }
}

.el-table--border td {
  border-left: none !important;
  border-right: none !important;
}

.el-table td,
.el-table th.is-leaf {
  border-right: none !important;
}

.el-table th>.cell {
  border-right: 1px solid #e6e6e6 !important;
}

.el-table {
  .el-table__fixed-right {
    th:last-child>.cell {
      border-right: none !important;
    }
  }
}

.el-table .el-table-column--selection>.cell {
  border-right: none !important;
}

.el-table td {
  // padding: 7px 0 !important;
}

.el-table__fixed-footer-wrapper {
  td {
    padding: 6px 0 !important;
  }
}

.el-table th {
  padding: 7px 0 !important;
  background: #F7F8FA;
  color: #333;
  font-weight: 300;
}

.el-table__fixed-right::before,
.el-table__fixed::before {
  background-color: #fff;
  height: 0;
}

//checkbox样式修改
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #3F61F1;
  border-color: #3F61F1;
}

.el-checkbox__input.is-checked+.el-checkbox__label {
  color: #333;
}

//loading默认样式覆盖
.el-loading-mask {
  top: 27px;
  background: transparent;
}

//tree样式覆盖
.departmentCon {
  .el-tree-node>.el-tree-node__children {
    overflow: visible;
  }

  .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
    background-color: #3f61f110;
  }

}

//pagination样式覆盖
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #3f61f1;
}

//表单样式覆盖
.el-form-item__label {
  font-weight: normal;
  padding-left: 5px;
  position: relative;

  &::before {
    position: absolute;
    left: 0;
    top: 0;
  }
}

.el-form-item__error {
  position: initial;
}

.el-form-item {
  margin-bottom: 16px;
}

//dropdown样式覆盖
.batchOptions {
  .el-dropdown-menu__item {
    padding: 0 30px !important;
  }
}

.el-dropdown-menu__item:focus,
.el-dropdown-menu__item:not(.is-disabled):hover {
  background-color: rgb(131, 160, 255);
  color: #fff;
}

//dialog样式覆盖
.el-dialog__wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.el-dialog {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  /*height:600px;*/
  max-height: calc(100% - 30px);
  max-width: 1920px;
}

.el-dialog .el-dialog__body {
  flex: 1;
  overflow: auto;
}

//库区操作弹框
.areasPopover {
  min-width: 100px;
  padding: 0;
}

.el-popper[x-placement^=bottom] {
  margin-top: 8px;
}

// 单选按钮组
.el-radio-button__orig-radio:checked+.el-radio-button__inner {
  background-color: #3f61f1;
  border-color: #3f61f1;
}

//左侧菜单样式覆盖
.el-submenu .el-menu-item,
.el-submenu__title {
  height: 40px;
  line-height: 40px;
}

.el-menu-item,
.el-submenu__title {
  height: 40px;
  line-height: 40px;
}

.menu_popover {
  padding: 5px 0;
  min-width: 100px;
}

